package com.example.demo.control;

import java.util.List;

/**
 * 复杂的对象映射
 */
public class UserBean2 {
    private int id;
    private String x;
    private String y;
    private UserBean userBean;
    private UserBean ub;
    private List<UserBean> ubs;

    public UserBean getUb() {
        return ub;
    }

    public void setUb(UserBean ub) {
        this.ub = ub;
    }

    public List<UserBean> getUbs() {
        return ubs;
    }

    public void setUbs(List<UserBean> ubs) {
        this.ubs = ubs;
    }

    public UserBean2(Integer id, String y) {
        this.id = id;
        this.y = y;
    }

    public int getId() {
        return id;
    }

    public String getY() {
        return y;
    }

    public UserBean2(Integer id) {
        this.id = id;
    }

    public String getX() {
        return x;
    }

    public void setX(String x) {
        this.x = x;
    }


    public UserBean getUserBean() {
        return userBean;
    }

    public void setUserBean(UserBean userBean) {
        this.userBean = userBean;
    }
}
